package com.tinxing.bp.commons.utils.tips;


import com.tinxing.bp.commons.utils.enums.BizExceptionEnum;

/**
 * @author YJH
 * @date 2019/12/27 9:46
 */
public class ErrorTip extends Tip {
    public ErrorTip(int code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public ErrorTip(BizExceptionEnum bizException) {
        super();
        this.code = bizException.getCode();
        this.message = bizException.getMessage();
    }

    @Override
    public String toString() {
        return "ErrorTip [code=" + code + ", message=" + message + "]";
    }
}
